export default {
  // 仓库
  state: {
    adminUser: {
    //   //账号
    // private String userName;
    // //电话
    // private String userPhone;
    // //头像
    // private String userIcon;
      // private String token;
      userName: '',
      userNickname: '',
      userPhone: '',
      userIcon: '',
      token: ''
    }
  },
  // 获取数据
  getters: {
    token (state) {
      return state.adminUser.token
    }
  },
  // 修改数据
  mutations: {
    setAdminUser (state, adminUser) {
      state = adminUser
    },
    setUserInfo (state, obj) {
      state.adminUser = obj
    }
  },
  // 业务逻辑
  actions: {
    // getUser ({ commit }, adminUser) {
    //   commit('setAdminUser', adminUser)
    // }
  },
  // 模块
  modules: {}
}
